package com.petAdoption.manager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.petAdoption.manager.entity.Product;
import com.petAdoption.manager.vo.ProductVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 王倩茹
 * @since 2023-08-28
 */

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    List<ProductVO> findAll();

    List<ProductVO> findByName(String productName);

    int updateProduct(Product product);

    int addProduct(Product product);

    List<ProductVO> productTypeName(Integer productType);

    List<ProductVO> productTypeById(Integer productTypeId);

}
